﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SeeUsers.aspx.cs" Inherits="admin_SeeUsers" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
   <form id="form1" runat="server">
   <div style=" width: 700px;margin:0 auto; height: 808px;">
        <asp:GridView ID="gv_users" runat="server" AutoGenerateColumns="False" 
            EnableModelValidation="True" BackColor="White" BorderColor="#DEDFDE" 
            BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
            GridLines="Vertical" Width="650px" onrowdatabound="gv_users_RowDataBound" >
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField HeaderText="序号" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="id" Visible="false" DataField="a_id" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField HeaderText="用户名" DataField="a_name"  ItemStyle-HorizontalAlign="Center"/>
                <asp:TemplateField HeaderText="删除" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbt_delete" OnClick="lb_delete_Click" OnClientClick="return confirm('确定要删除？')" CommandArgument='<%#Eval("a_id") %>' runat="server">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="修改" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <a href='Adduser.aspx?uid=<%#Eval("a_id") %>' target="mainframe">修改</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
